package docker_router

import (
	"github.com/gin-gonic/gin"
	"virtual-resource-schedule-service/api/docker_api"
	"virtual-resource-schedule-service/utils/auth"
)

func InitDockerContainerRouter(Router *gin.RouterGroup) {
	ContainerRouter := Router.Group("docker/container").Use(auth.JWTAuth())
	{
		ContainerRouter.POST("/create", docker_api.CreateDockerContainer) // 创建容器，且创建后处于未开机的状态
		ContainerRouter.POST("/start", docker_api.StartDockerContainer)   // 启动容器
		ContainerRouter.POST("/stop", docker_api.StopDockerContainer)     // 停止容器
	}
}
